<{if (isset($missingFields))}>
	<h3>The following required fields are missing:</h3>
	<ul>
	<{foreach from=$missingFields item=thisField}>
		<{assign var="fieldname" value="_MD_CONFREG_FIELD_"|cat:$thisField}>
		<li><{$smarty.const.$fieldname}></li>
	<{/foreach}>
	</ul>
<{/if}>

<{assign var='tab' value=0}>
<form action="register.php" method="post" class="f-wrap-1">
<table class="table2" id="existingusers">
<thead><tr><th colspan="10">Current Attendees</th></tr></thead>
<tbody>
<tr>
	<th><{$smarty.const._MD_CONFREG_EDIT}></th>
	<th>Name</th>
	<th>TMC #</th>
	<th>Days Attending</th>
	<th>Additional Options</th>
	<th>Cost</th>
</tr>

<{foreach from=$users item=thisUser}>
	<{assign var='tab' value=`$tab+1`}>
	<tr><td><input type="submit" name="submit" value="Edit <{$thisUser.user_id}>" class="f-submit" tabindex="<{$tab}>" /></td>
		<td><{$thisUser.first_name}> <{$thisUser.last_name}></td>
		<td><{$thisUser.member_num}></td>
		<td><{$thisUser.attend_desc}></td>
		<td><{$thisUser.extras_desc}></td>
		<td><{$thisUser.cost_disp}></td>
	</tr>
<{/foreach}>
</tbody></table><br />

<fieldset>
<h3>Enter Billing Information</h3>

<label for="phone"><b>Total Cost:</b> <{$group.total_cost_disp}><br /><br /></label>

<label for="company"><b><span class="req">*</span>Company Name:</b>
<input id="company" name="company" value="<{$group.company}>" type="text" size=32 maxlength=128 class="f-name" tabindex="<{$tab+1}>" /><br />
</label>

<label for="fname"><b><span class="req">*</span>Billing First Name:</b>
<input id="fname" name="billfname" value="<{$group.bill_fname}>" type="text" class="f-name" tabindex="<{$tab+2}>" /><br />
</label>

<label for="lname"><b><span class="req">*</span>Billing Last Name:</b>
<input id="lname" name="billlname" value="<{$group.bill_lname}>" type="text" class="f-name" tabindex="<{$tab+3}>" /><br />
</label>

<label for="phone"><b>Phone:</b>
<input id="phone" name="phone" type="text" value="<{$group.phone}>" class="f-name" tabindex="<{$tab+4}>" /><br />
</label>

<label for="paytype"><b><span class="req">*</span>Pay Method:</b>
<select id="paytype" name="paytype" tabindex="<{$tab+5}>" />
	<option value="">Pay Method...</option>
	<option <{if $group.paytype == "Check"}>selected<{/if}>>Check</option>
	<option <{if $group.paytype == "American Express"}>selected<{/if}>>American Express</option>
	<option <{if $group.paytype == "Discover"}>selected<{/if}>>Discover</option>
	<option <{if $group.paytype == "Mastercard"}>selected<{/if}>>Mastercard</option>
	<option <{if $group.paytype == "Visa"}>selected<{/if}>>Visa</option>
</select>
<br />
</label>

<label for="billaddress"><b>Billing Address:</b>
<input id="billaddress" name="billaddress" value="<{$group.billaddress1}>" type="text" class="f-name" tabindex="<{$tab+6}>" /><br />
</label>

<label for="billcity"><b>City:</b>
<input id="billcity" name="billcity" value="<{$group.billcity}>" type="text" class="f-name" tabindex="<{$tab+7}>" /><br />
</label>

<label for="billstate"><b>State:</b>
<select id="billstate" name="billstate" tabindex="<{$tab+8}>" >
<option value="">Select State...</option>
<{section name=states2 start=1 loop=60}>
		<{assign var="state" value="_MD_CONFREG_STATE"|cat:$smarty.section.states2.index}>
		<option <{if $smarty.const.$state == $group.billstate}> selected <{/if}>><{$smarty.const.$state}></option>
<{/section}>
</select>
<br />
</label>

<label for="billzip"><b>Zip Code:</b>
<input id="billzip" name="billzip" value="<{$group.billzip}>" type="text" class="f-name" tabindex="<{$tab+9}>" /><br />
</label>

<label for="confirmemail"><b>Confirmation<br />E-mail:</b>
<input id="confirmemail" name="confirmemail" value="<{$group.confirm_email}>" type="text" class="f-name" tabindex="<{$tab+10}>" /><br />
</label>

</fieldset>

<fieldset>
<div class="f-submit-wrap-right">
<input type="submit" name="submit" value="Add More People" class="f-submit" tabindex="<{$tab+11}>" />
<input type="submit" name="submit" value="Finish" class="f-submit" tabindex="<{$tab+12}>" /><br />
</div>
</fieldset>
</form>

<!-- do not remove the following copyright section -->
<div align="right">
<br><{$smarty.const._MD_CONFREG_COPYRIGHT}>
</div>
<!-- end of copyright section -->
